<template>
  <span>
  </span>
</template>

<script>
import { mapActions } from "vuex";
export default {
  name: 'OrderDeviceLoader',
  props: {
    orderId: Number
  },
  computed: {
  },
  created () {
    if (this.orderId) {
      this.loadDevice({ orderId: this.orderId });
    }
  },
  methods: {
    ...mapActions({ loadDevice: 'deviceTrace/orderDeviceTrace' })
  },
  watch: {
    orderId (orderId) {
      this.loadDevice({ orderId: orderId })
    }
  },
}
</script>